package com.wx;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import java.util.LinkedList;
import java.util.List;

/**
 * @User: Jrxsr
 * Entity
 * on 2019/1/3.
 **/
public class Entity {
    String str;
    String ww;
    String ss;

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = str;
    }

    public String getWw() {
        return ww;
    }

    public void setWw(String ww) {
        this.ww = ww;
    }

    public String getSs() {
        return ss;
    }

    public void setSs(String ss) {
        this.ss = ss;
    }


    public static void main(String[] args) {
        Entity entity = new Entity();
        entity.setSs("ss1");
        entity.setStr("str1");
        entity.setWw("ww1");
        Entity entity1 = new Entity();
        entity1.setWw("ww2");
        entity1.setSs("ss2");
        entity1.setStr("str2");
        List<Entity> list = new LinkedList<Entity>();
        list.add(entity);
        list.add(entity1);
        System.out.println(JSONArray.fromObject(list));
    }
}
